import request from '@/utils/request'

// 查询污水许可资料列表
export function listOpmEnvSewageLicense(query) {
  return request({
    url: '/environment/opmEnvSewageLicense/list',
    method: 'get',
    params: query
  })
}

// 查询污水许可资料详细
export function getOpmEnvSewageLicense(id) {
  return request({
    url: '/environment/opmEnvSewageLicense/' + id,
    method: 'get'
  })
}

// 新增污水许可资料
export function addOpmEnvSewageLicense(data) {
  return request({
    url: '/environment/opmEnvSewageLicense',
    method: 'post',
    data: data
  })
}

// 修改污水许可资料
export function updateOpmEnvSewageLicense(data) {
  return request({
    url: '/environment/opmEnvSewageLicense',
    method: 'put',
    data: data
  })
}

// 删除污水许可资料
export function delOpmEnvSewageLicense(id) {
  return request({
    url: '/environment/opmEnvSewageLicense/' + id,
    method: 'delete'
  })
}
